﻿<Grid x:Class="TouchExplorer.TouchDirectoryDisplay"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d"              
             d:DesignHeight="300" d:DesignWidth="300" Background="Transparent">
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="Auto"/>
        <ColumnDefinition Width="*"/>
    </Grid.ColumnDefinitions>
    <Image x:Name="ImgElement" Width="48" Height="48" Stretch="UniformToFill"/>
    <Grid Grid.Column="1" Margin="10 0 0 0" VerticalAlignment="Center">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBlock HorizontalAlignment="Stretch" Text="{Binding Name, Mode=OneTime}"  Style="{StaticResource LargeWhiteText}" />
        <!--<TextBlock HorizontalAlignment="Stretch" Grid.Row="1" Text="{Binding FullName}" Style="{StaticResource SmallGrayText}" />-->

    </Grid>
    <Grid.Triggers>
        <EventTrigger RoutedEvent="Grid.Loaded">
            <BeginStoryboard>
                <Storyboard Name="ItemLoad">
                    <DoubleAnimation   
                            Storyboard.TargetProperty="(Grid.Opacity)"   
                            From="0.0" To="1" Duration="0:0:0.3" />
                    <!--<DoubleAnimation   
                            Storyboard.TargetProperty="(Grid.Height)"   
                            From="0" Duration="0:0:0.25" />-->
                </Storyboard>
            </BeginStoryboard>
        </EventTrigger>
        <EventTrigger RoutedEvent="Grid.Unloaded">
            <BeginStoryboard>
                <Storyboard Name="ItemUnload">
                    <DoubleAnimation   
                            Storyboard.TargetProperty="(Grid.Opacity)"   
                            From="1" To="0" Duration="0:0:0.3" />
                </Storyboard>
            </BeginStoryboard>
        </EventTrigger>
    </Grid.Triggers>
</Grid>
